package com.movitech.mobile.cz.base.common.bpm;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

@Service("bpmUtil")
public class BpmUtil implements BpmService {

    /***
     * 调用审批流程
     * @param mapParams
     * @param actionType
     * @return
     */
    @Override
    public Map<String, Object> invokeApprovalFlow(Map<String, Object> mapParams, int actionType) {
        System.out.println("===========BpmUtil-->invokeApprovalFlow");
        Map<String, Object> mapBpmParams = new HashMap<String, Object>();
        mapBpmParams.put("IS_SUCCESS", true);
        mapBpmParams.put("FLOW_RESULT_JSON", null);
        return mapBpmParams;
    }

    /***
     * 调用采购方案接口
     * @param flowFormDataVo
     * @return
     */
    public Map<String, Object> invokePurchaseSolutionDoc(FlowFormDataVo flowFormDataVo) {
        System.out.println("===========BpmUtil-->invokePurchaseSolutionDoc");
        return new HashMap<>();
    }

    /***
     * 调用招标文件接口
     * @param flowFormDataVo
     * @return
     */
    public Map<String, Object> invokeApprovalBidDoc(FlowFormDataVo flowFormDataVo) {
        System.out.println("===========BpmUtil-->invokeApprovalBidDoc");

        return new HashMap<>();
    }


    /***
     * 调用定标接口
     * @param flowFormDataVo
     * @return
     */
    public Map<String, Object> invokeApprovalCalibrationBid(FlowFormDataVo flowFormDataVo) {
        System.out.println("===========BpmUtil-->invokeApprovalCalibrationBid");

        return new HashMap<>();
    }

    @Override
    public String getBpmWorkflowId(Map<String, Object> params) {
        return "";
    }
}
